home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / misc / sci / MLSv1_7.lha / MLS_V1.5.readme < prev    next >
Text File  |  1993-08-01  |  3KB  |  84 lines

  1.             MLS v1.5 (Method of Least Squares) 
  2.  
  3.                       Written By Brian Olson 
  4.  
  5.                         -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  6.  
  7.                 This is ShareWare
  8.  
  9.               if you find this program useful 
  10.  
  11.               please send at least $10 to the Author
  12.  
  13.                             to encourage Updates.
  14.  
  15.               -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  16.  
  17.                       Authors Address:
  18.  
  19.                     Brian Olson
  20.                     11 Limetree Lane
  21.                     Liverpool, NY 13090
  22.                     USA
  23.         
  24.               -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  25.  
  26.  
  27.     The Method of Least Squares is a graphical analysis program that 
  28. determines the relationship between two sets of data. Plotting the two
  29. sets of data against each other and drawing a line which touches, or comes
  30. close to, all of the data points (The Best Fit Line) then the equation of
  31. that line would tell you how the two sets of data are related. 
  32.     Once the relationship is determined you could extrapolate to find
  33. ALL possible data points.
  34.     However drawing the Best Fit line can be very difficult, expecially
  35. if the data doesn't represent a straight line. The Method of Least Squares
  36. makes this process easy, it will determine the Best Fit Line for you.
  37.     There are, however, many repetitive calculations in calculating the
  38. Best Fit Line, therefore I decided to write a program to do it for me.
  39.     To make life even easier for the User, I installed a couple of
  40. preset relationships into the program. They are
  41.  
  42.         Relationship                Representative
  43.                             Equation
  44.                         ( a and b are constants
  45.                              to be determines )
  46.         -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  47.     Linear (Definatly Need this one)     Y = aX + b
  48.     Power                     Y = aX^b
  49.     Exponential                 Y = aEXP(b)
  50.     Logarithmic X-Axis             Y = aLOG10(bX)
  51.     Logarithmic Y-Axis             LOG10(Y) = aX + b
  52.     Logarithmic X & Y Axis             LOG10(Y) = aLOG10(X) + b
  53.  
  54.  The first thing you need to do is make a "points" file. Just load up your
  55. favorite text editor and enter in the X and Y data points, one set of X and
  56. Y points per line 
  57.  
  58.   {ex.}
  59. 1.32    2.42
  60. 2.43    3.53
  61. 3.46    4.57
  62.  
  63. it's as easy as that. Next load up the MLS program and click in the points
  64. filename gadget, enter the name of the file you just created, hit Enter and
  65. then click on the LOAD Button. The Status window will tell you what's going
  66. on. 
  67.     Once the points are loaded, they are plotted in the bix box on the
  68. screen. The X and Y Axis Ranges are shown just below the box. By looking at 
  69. the positions of the points it's possible to determine the type of 
  70. relationship. Using this guess, click on the little button next to the 
  71. relationship you believe these points to represent. Now click on CALCULATE. 
  72. The resulting line will be drawn. If it doesn't come close to looking like 
  73. the Best Fit line you probably selected the wrong Regression Mode. If it 
  74. DOES look like the best fit line, you can note the equation in the status 
  75. line, or if you want a more elaborate display of data click on the SAVE 
  76. button. A data file with the same name are your points file but with a 
  77. .REG extenstion will be created. 
  78.     If the Regression Mode of the points is not one of the Preset mode
  79. then you have to decide what it represents, and then convert it to a Linear
  80. equation, converting the points along with it. And run the program and
  81. LINEAR with your NEW points. I won't really go into this process. 
  82.  
  83.     Well. I guess that's about it... Enjoy...
  84.